<?php

include_once "configa.php";

// Run the query
$db = @mysql_connect("$dbhost", "$dbuser", "$dbpass") or die("cannot connect to host");
@mysql_select_db("$dbcname",$db) or die("could not open database, connection to host ok");

$rows = mysql_num_rows(mysql_query("SELECT * FROM accounts"));

$total = $rows-1;

echo "reg. Accounts: $total";

// end
?>